/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package PoJo;

/**
 *
 * @author Kute_Ants
 */
public class SanPhamPOJO 
{
    private String MaSanPham;
    private String MaloaiSanPham;
    private int SoLuong;
    private int GiaBan;
    private String MaNhaSanXuat;
    private String TenSanPham;
    
    //phuong thuc khoi tao

    public SanPhamPOJO(String MaSanPham, String MaloaiSanPham, int SoLuong, int GiaBan, String MaNhaSanXuat, String TenSanPham)
    {
        this.MaSanPham = MaSanPham;
        this.MaloaiSanPham = MaloaiSanPham;
        this.SoLuong = SoLuong;
        this.GiaBan = GiaBan;
        this.MaNhaSanXuat = MaNhaSanXuat;
        this.TenSanPham = TenSanPham;
    }
    
    public SanPhamPOJO()
    {
        this.MaSanPham = null;
        this.MaloaiSanPham = null;
        this.SoLuong = 0;
        this.GiaBan = 0;
        this.MaNhaSanXuat = null;
        this.TenSanPham = null;
    }
    public SanPhamPOJO(SanPhamPOJO SP)
    {
        this.MaSanPham = SP.MaSanPham;
        this.MaloaiSanPham = SP.MaloaiSanPham;
        this.SoLuong = SP.SoLuong;
        this.GiaBan = SP.GiaBan;
        this.MaNhaSanXuat = SP.MaNhaSanXuat;
        this.TenSanPham = SP.TenSanPham;
    }
    
    // phuong thuc set get

    public int getGiaBan() {
        return GiaBan;
    }

    public void setGiaBan(int GiaBan) {
        this.GiaBan = GiaBan;
    }

    public String getMaNhaSanXuat() {
        return MaNhaSanXuat;
    }

    public void setMaNhaSanXuat(String MaNhaSanXuat) {
        this.MaNhaSanXuat = MaNhaSanXuat;
    }

    public String getMaSanPham() {
        return MaSanPham;
    }

    public void setMaSanPham(String MaSanPham) {
        this.MaSanPham = MaSanPham;
    }

    public String getMaloaiSanPham() {
        return MaloaiSanPham;
    }

    public void setMaloaiSanPham(String MaloaiSanPham) {
        this.MaloaiSanPham = MaloaiSanPham;
    }

    public int getSoLuong() {
        return SoLuong;
    }

    public void setSoLuong(int SoLuong) {
        this.SoLuong = SoLuong;
    }

    public String getTenSanPham() {
        return TenSanPham;
    }

    public void setTenSanPham(String TenSanPham) {
        this.TenSanPham = TenSanPham;
    }
    
    
    
    
    
}
